package com.huzz.security.access;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.huzz.util.JackAuthorityDeserializer;
import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * 自定义表达式验证权限接口
 *
 * @author Huzz
 * @create 2022-08-23 19:04
 */
public interface Access {

    /**
     * 具有权限验证
     * @param request
     * @param authentication
     * @return
     */
    boolean hasPermit(HttpServletRequest request, Authentication authentication);

}
